package com.xiaofeng.pochi.service;

import com.xiaofeng.pochi.pojo.vo.WeChatAccessToken;
import com.xiaofeng.pochi.pojo.wx.OrderTemplateDto;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/09/21/21:22
 * @Description:
 */
public interface WxService {
    /**
     * 获取微信的accessToken
     *
     * @return
     */
    WeChatAccessToken getAccessToken();


    /**
     * 推送消息
     *
     * @param template
     * @param templateId
     * @param openId
     */
    void pushMessage(OrderTemplateDto template, String templateId,String openId) throws IOException;
}
